package pers.cz.netty.protocal;

/**
 * @program: PostGirl-panent
 * @description: 定义消息协议
 * @author: Cheng Zhi
 * @create: 2022-10-04 15:21
 **/
public class Message {

    /**
     * 具体传输的数据
     */
    private Object content;

    /**
     * 分割标识
     */
    private String splitSymbol = "$POSTGIRL$";

    /**
     * 数据包总长度
     */
    private long contentLength;

    private MsgType msgType;

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public long getContentLength() {
        return contentLength;
    }

    public void setContentLength(long contentLength) {
        this.contentLength = contentLength;
    }

    public MsgType getMsgType() {
        return msgType;
    }

    public void setMsgType(MsgType msgType) {
        this.msgType = msgType;
    }

    public String getSplitSymbol() {
        return splitSymbol;
    }
}
